
public class MusicBoxFactory {
	public static MusicBox getInstance (String className){
		  MusicBox music=null;
		  if("PianoBox".equals(className)){
		    	music=new PianoBox();
		  }
		  if("ViolinBox".equals(className)){
		     	music=new ViolinBox();
		  }
		  return music;
	   }
}
